package com.tushare.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tushare.dto.DailyBasicDto;
import com.tushare.entity.DailyBasic;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author jobob
 * @since 2021-03-08
 */
public interface IDailyBasicService extends IService<DailyBasic> {

    boolean saveDailyBasics(List<DailyBasic> list);

    int getStockBasicCount(String ts_code);

    DailyBasic getLastStockBasic();

    DailyBasic getLastStockBasicByTsCode(String ts_code);

    List<DailyBasic> getStockBasicByTsCode(String ts_code);

    List<DailyBasic> getAllDailyBasic();

    List<DailyBasic> getLastDailyBasics(String ts_code, int count);

    List<DailyBasicDto> getDailyBasicDto(String ts_code);

    boolean deleteAllDailyBasic();

}
